﻿@using QDT.Web
@using QDT.Web.Models
@model IList<NoticeModel>
@if (Model == null)
{
}
else
{
    int i = 0;
    foreach (var m in Model)
    {
        i++;
        if (m.CateId.ToString() == "5")
        {   //让最后一条数据颜色变红，暂时想不到好的方法
          
    <li class="NewsOrTell_li assigns_tr_hover" title="@m.Title"><a href="@Url.Action("ShowDetail", "Article", new { id = m.Id })" class="@(i == 1 ? "NewsOrTell_li_a" : "") ">
        <img src="/Content/Default/Images/noticerool2.png" style="text-align: center;" />&nbsp;&nbsp;<span>公告</span><span>
            <b>·</b> </span>@m.Title </a><span style="display: block; float: right; margin-right: 20px">
                @m.CreateTime.ToString("yyyy-MM-dd")</span></li>
        }
        else
        {
    <li class="NewsOrTell_li assigns_tr_hover" title="@m.Title"><a href="@Url.Action("ShowDetail", "Article", new { id = m.Id })"  class="@(i == 1 ? "NewsOrTell_li_a" : "") ">
        <img src="/Content/Default/Images/noticerool2.png" style="text-align: center;" />&nbsp;&nbsp;<span>新闻</span><span>
            <b>·</b> </span>@m.Title </a><span style="display: block; float: right; margin-right: 20px">
                @m.CreateTime.ToString("yyyy-MM-dd")</span></li>
        }

    }
}